package com.hntest.entity;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

public class SystemAccountFlow implements Serializable {

    private static final long serialVersionUID = -1360848974251995140L;
    private Date createDate;    //创建日期
    private int accountActionType=BidConst.SYSTEM_ACCOUNT_ACTIONTYPE_NONE; //系统账户流水类型
    private BigDecimal amount=BidConst.ZERO;    //发生额
    private String note;    //流水账备注
    private BigDecimal balance =BidConst.ZERO;  //系统账户可用余额
    private BigDecimal freezedAmount=BidConst.ZERO; //冻结金额
    private Long systemAccountId;       //所属账户区间
    private LoginInfo targetUser;       //该系统账户流水对应的产生目标用户对象

    public SystemAccountFlow(){}

    public SystemAccountFlow(Date createDate, int accountActionType, BigDecimal amount, String note, BigDecimal balance, BigDecimal freezedAmount, Long systemAccountId, LoginInfo targetUser) {
        this.createDate = createDate;
        this.accountActionType = accountActionType;
        this.amount = amount;
        this.note = note;
        this.balance = balance;
        this.freezedAmount = freezedAmount;
        this.systemAccountId = systemAccountId;
        this.targetUser = targetUser;
    }

    public Date getCreateDate() {
        return createDate;
    }

    public void setCreateDate(Date createDate) {
        this.createDate = createDate;
    }

    public int getAccountActionType() {
        return accountActionType;
    }

    public void setAccountActionType(int accountActionType) {
        this.accountActionType = accountActionType;
    }

    public BigDecimal getAmount() {
        return amount;
    }

    public void setAmount(BigDecimal amount) {
        this.amount = amount;
    }

    public String getNote() {
        return note;
    }

    public void setNote(String note) {
        this.note = note;
    }

    public BigDecimal getBalance() {
        return balance;
    }

    public void setBalance(BigDecimal balance) {
        this.balance = balance;
    }

    public BigDecimal getFreezedAmount() {
        return freezedAmount;
    }

    public void setFreezedAmount(BigDecimal freezedAmount) {
        this.freezedAmount = freezedAmount;
    }

    public Long getSystemAccountId() {
        return systemAccountId;
    }

    public void setSystemAccountId(Long systemAccountId) {
        this.systemAccountId = systemAccountId;
    }

    public LoginInfo getTargetUser() {
        return targetUser;
    }

    public void setTargetUser(LoginInfo targetUser) {
        this.targetUser = targetUser;
    }
}
